﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Public.Common;

public partial class js_net : System.Web.UI.Page
{
    public string tf = "false";
    public string ad = string.Empty;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            ShowData();
        }
    }
    protected void ShowData() {
        ad = string.Empty;
        string ipad = this.Context.Request.UserHostAddress;//IP地址
        IPScaner ip = new IPScaner();
        ad = ip.IPLocation(AppDomain.CurrentDomain.BaseDirectory + "QQWry.DAT", ipad).Replace("CZ88.NET", "");
        if (ad.IndexOf("广州") == -1 && ad.IndexOf("广东")==-1)
        {
            tf = "true";
        }
    }
}